﻿using System.IO;
using Fetches.Fetch.Dto;

namespace Fetches.Process.Pipelines
{
    public class TextPipeline:AbstractPipeline
    {
        protected override void OnProcess(string site, ResultItems result)
        {
            var file = Path.Combine("D://pipeline", result.Title) + ".txt";
            if (!File.Exists(file))
            {
                File.AppendAllText(file,result.Content);
            }
        }
    }
}
